//
//  City.m
//  05_homework_排序
//
//  Created by dllo on 16/7/9.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "City.h"

@implementation City
- (instancetype)initWithProvince:(NSString *)province city:(NSString *)city town:(NSString *)town {
    self = [super init];
    if (self) {
        _province = province;
        _city = city;
        _town = town;
    }
    return self;
}

+ (instancetype)cityWtihProvince:(NSString *)province city:(NSString *)city town:(NSString *)town {
    return [[City alloc] initWithProvince:province city:city town:town] ;
}

- (NSString *)description {
    return [NSString stringWithFormat:@"%@, %@, %@", _province, _city, _town];
}


@end
